using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class online_survey_question_sheetMap : EntityTypeConfiguration<online_survey_question_sheet>
    {
        public online_survey_question_sheetMap()
        {
            // Primary Key
            this.HasKey(t => t.survey_question_sheet_id);

            // Properties
            this.Property(t => t.survey_question_title)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("online_survey_question_sheet");
            this.Property(t => t.survey_question_sheet_id).HasColumnName("survey_question_sheet_id");
            this.Property(t => t.survey_type).HasColumnName("survey_type");
            this.Property(t => t.survey_question_title).HasColumnName("survey_question_title");
            this.Property(t => t.status).HasColumnName("status");
            this.Property(t => t.question_no).HasColumnName("question_no");
        }
    }
}
